/* Container & Section Title */
.services.section {
    background-color: #f9fafb;  /* Light gray background */
    padding: 4rem 2rem;
    text-align: center;         /* Center titles and subtitles */
  }
  
  .services .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4f46e5;             /* Indigo */
    margin-bottom: 0.3rem;
  }
  
  .services .section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;             /* Gray-500 */
    margin-bottom: 3rem;
    display: block;
  }
  
  /* Services container grid */
  .services-container.container.grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
  }
  
  /* Service card */
  .services-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgb(79 70 229 / 0.15);  /* Indigo shadow */
    padding: 2.2rem 2rem 2.8rem;
    width: 280px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .services-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgb(99 102 241 / 0.35);
  }
  
  /* Icon styling */
  .services-icon {
    font-size: 3.5rem;
    color: #6366f1;  /* Indigo-500 */
    margin-bottom: 1.2rem;
    transition: color 0.3s ease;
  }
  
  .services-content:hover .services-icon {
    color: #8b5cf6;  /* Violet-500 */
  }
  
  /* Service title */
  .services-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #3730a3;  /* Indigo-700 */
    margin-bottom: 1.2rem;
    line-height: 1.2;
  }
  
  /* Button style */
  .services-button {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #4f46e5;
    gap: 0.5rem;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    margin-top: auto;
  }
  
  .services-button:hover {
    color: #8b5cf6;
    border-color: #8b5cf6;
  }
  
  .button-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
  }
  
  .services-button:hover .button-icon {
    transform: translateX(5px);
  }
  
  /* Modal background */
  .services-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  /* Show modal */
  .services-modal.active {
    display: flex;
    opacity: 1;
  }
  
  /* Modal content */
  .services-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgb(79 70 229 / 0.25);
    position: relative;
    text-align: center;
    animation: fadeInUp 0.5s ease forwards;
  }
  
  /* Modal title */
  .services-modal-title {
    font-size: 1.7rem;
    color: #4338ca;  /* Indigo-600 */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
  }
  
  /* Modal close icon */
  .services-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-size: 1.3rem;
    color: #4b5563;  /* Gray-600 */
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .services-modal-close:hover {
    color: #8b5cf6;
  }
  
  /* Modal service list */
  .services-modal-services.grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }
  
  .services-modal-service {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #4b5563;  /* Gray-600 */
    font-weight: 600;
    font-size: 1rem;
  }
  
  /* Modal icons */
  .services-modal-icon {
    font-size: 1.3rem;
    color: #8b5cf6;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .services-container.container.grid {
      flex-direction: column;
      align-items: center;
    }
  }
  